package com.zyh.inner;

public class InnerClassDemo3 {
    public static void main(String[] args) {
        Outer1 outer1 = new Outer1();
        outer1.eat();
    }
}

class Outer1 {
    public void eat() {
        System.out.println("==========");
//        Inner1 inner1 = new Inner1();
        class Inner1 {
            public int num = 10;

            public void method() {
                System.out.println("这是有名字的内部类");
            }
        }
    }
}
